package com.ruoyi.course.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产流程操作对象 lw_controls
 * 
 * @author ruoyi
 * @date 2023-08-22
 */
public class LwControls extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 操作表主键 */
    private Long id;

    /** 生产记录id */
    @Excel(name = "生产记录id")
    private Long courseId;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 操作员工id */
    @Excel(name = "操作员工id")
    private Long employeeId;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    private String userName;

    /** 取走原材料数量 */
    @Excel(name = "取走原材料数量")
    private String takeoutMaterials;

    /** 操作流程 */
    @Excel(name = "操作流程")
    private String flow;

    /** 已完成 */
    @Excel(name = "已完成")
    private Long completed;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setEmployeeId(Long employeeId)
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId()
    {
        return employeeId;
    }

    public String getTakeoutMaterials() {
        return takeoutMaterials;
    }

    public void setTakeoutMaterials(String takeoutMaterials) {
        this.takeoutMaterials = takeoutMaterials;
    }

    public void setFlow(String flow)
    {
        this.flow = flow;
    }

    public String getFlow() 
    {
        return flow;
    }
    public void setCompleted(Long completed) 
    {
        this.completed = completed;
    }

    public Long getCompleted() 
    {
        return completed;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseId", getCourseId())
            .append("time", getTime())
            .append("employeeId", getEmployeeId())
            .append("takeoutMaterials", getTakeoutMaterials())
            .append("flow", getFlow())
            .append("completed", getCompleted())
            .toString();
    }
}
